package com.alex.wechat.mp.message.mass.service;

import java.util.List;

import org.jeecgframework.core.common.service.CommonService;

import com.alex.wechat.mp.message.mass.entity.WxMassBillEntity;
import com.alex.wechat.mp.message.mass.entity.WxMassUsersEntity;

public interface WxMassBillServiceI extends CommonService {

  public <T> void delete(T entity);

  /**
   * 添加一对多
   * 
   */
  public void addMain(WxMassBillEntity wxMassBill, List<WxMassUsersEntity> wxMassUsersList);

  /**
   * 修改一对多
   * 
   */
  public void updateMain(WxMassBillEntity wxMassBill, List<WxMassUsersEntity> wxMassUsersList);

  public void delMain(WxMassBillEntity wxMassBill);

  /**
   * 默认按钮-sql增强-新增操作
   * 
   * @param id
   * @return
   */
  public boolean doAddSql(WxMassBillEntity t);

  /**
   * 默认按钮-sql增强-更新操作
   * 
   * @param id
   * @return
   */
  public boolean doUpdateSql(WxMassBillEntity t);

  /**
   * 默认按钮-sql增强-删除操作
   * 
   * @param id
   * @return
   */
  public boolean doDelSql(WxMassBillEntity t);

  /**
   * 通过消息标识取得单据。
   * 
   * @param msgId
   * @return
   */
  public WxMassBillEntity getByMsgId(String msgId);

  /**
   * 取得群发单用户列表。
   * 
   * @param billId
   * @return
   */
  public List<String> getUsers(String billId);
}
